package persentation.presentUniversityDean;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import persentation.presentStudent.ExceptionHandler;
import businesslogic.userBl.StudentController;
import businesslogic.userBl.UniversityDeanController;

public class BottomPanel extends JPanel {
	private static Image PAGE = new ImageIcon("Graphics/universityDean/uDeaninfo.png")
			.getImage();
	private UniversityDeanController uDeanController;

	/**
	 * Create the panel.
	 */
	public BottomPanel(UniversityDeanController uDeanController) {

		this.uDeanController=uDeanController;
		String name = "教务处老师";
		/*try {
			name = studentController.getStudentVO().getName();
		} catch (Exception e) {
	
			e.printStackTrace();
			ExceptionHandler.networkException();
		}*/
		setSize(800,500);
		setLayout(null);
		
		JLabel lblNewLabel = new JLabel("欢迎");
		lblNewLabel.setFont(new Font("微软雅黑", Font.PLAIN, 20));
		lblNewLabel.setBounds(434, 33, 197, 35);
		add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel(name);
		lblNewLabel_1.setFont(new Font("微软雅黑", Font.PLAIN, 20));
		lblNewLabel_1.setBounds(641, 39, 123, 23);
		add(lblNewLabel_1);
	}

	public void paintComponent(Graphics g) {
		g.drawImage(PAGE, 0, 10, null);
	}

}
